package cn.cs.client;

import cn.cs.fallback.CsTradeClientFallBack;

import cn.cs.config.CsConfiguration;
import cn.cs.vo.DmItemMessageVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestBody;
/**
 * Created by yuexl
 */
@FeignClient(name = "cs-pay-provider", configuration = CsConfiguration.class, fallback = CsTradeClientFallBack.class)
public interface RestCsTradeClient {

@RequestMapping(value = "/insertTrade",method = RequestMethod.POST)
public Integer insertTrade(@RequestBody DmItemMessageVo csItemMessageVo)throws Exception;
}
